﻿<UserControl x:Class="UploadingControl.CommerialListPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="404" d:DesignWidth="566" xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" xmlns:my="clr-namespace:UploadingControl">

    <Grid x:Name="LayoutRoot" Background="White">
        <StackPanel Height="51" HorizontalAlignment="Right" Orientation="Horizontal" Margin="0,12,0,0" Name="stackPanel1"   VerticalAlignment="Top" Width="566">
            <controls:DatePicker Name="datePicker1" Height="38" Width="170" />
        </StackPanel>
        <data:DataGrid x:Name="dataGrid1" AutoGenerateColumns="False" Margin="0,107,0,120" IsReadOnly="True" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible" AlternatingRowBackground="#FFE4EFF4" >
            <data:DataGrid.Columns>
                <data:DataGridTextColumn Binding="{Binding Path=CurrentDate}" CanUserReorder="False" CanUserResize="False" CanUserSort="False" Header="News date" IsReadOnly="True" Width="150" />

                <data:DataGridTemplateColumn CanUserReorder="False" CanUserResize="False" CanUserSort="False" Header="Action" IsReadOnly="False" Width="190" >
                    <data:DataGridTemplateColumn.CellEditingTemplate >
                        <DataTemplate >
                            <StackPanel Orientation="Horizontal">
                                <HyperlinkButton Name="hbtnView" Content="View" Click="hbtnView_Click"  ></HyperlinkButton>
                                <HyperlinkButton Name="hbtnEdit" Content="Edit" Click="hbtnEdit_Click" ></HyperlinkButton>

                            </StackPanel>
                        </DataTemplate>
                    </data:DataGridTemplateColumn.CellEditingTemplate>
                </data:DataGridTemplateColumn>
            </data:DataGrid.Columns>
        </data:DataGrid>
        <Button Content="Refresh" Height="23" Name="btnRefresh" Width="75" Margin="398,69,93,312" Click="btnRefresh_Click" />
        <Button Content="Add" Height="23" Name="btnAdd" Width="75" Click="btnAdd_Click" Margin="479,69,12,312" />
        <Button Content="Search" Height="23" Margin="317,69,0,312" Name="btnSearch" Width="75" HorizontalAlignment="Left" Click="btnSearch_Click" />
        <my:BusyIndicator Height="199" HorizontalAlignment="Left" Margin="198,30,0,0" x:Name="busyIndicator1" VerticalAlignment="Top" Width="356" />
    </Grid>
</UserControl>
